import os
import sys
from app.app import app, load_model

if __name__ == '__main__':
    # 加载模型
    load_model()
    
    # 启动服务
    port = int(os.environ.get('PORT', 8000))
    app.run(host='0.0.0.0', port=port, debug=False) 